package com.chenfeng.ego.portal.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.chenfeng.ego.portal.service.TbItemImageService;
import com.chenfeng.ego.portal.service.TbItemService;

@Controller
public class TbItemImagesController
{
	
	@Resource
	TbItemImageService  itemService;
	@RequestMapping("item/{id}.html")

	public String selById(@PathVariable long id,Model model)
	{
		model.addAttribute("item",itemService.selById(id));
		return "item";
	};

}
